package com.ruoyi.alert.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import javax.validation.constraints.NotNull;

import java.util.Date;

@JsonInclude(JsonInclude.Include.NON_NULL)
public class Alert {
    // 第一天的COD值
    @NotNull(message = "第一天的COD值不能为空")
    private Double codValueDay1 = 0.0;

    //第二天的COD值
    @NotNull(message = "第二天的COD值不能为空")
    private Double codValueDay2 = 0.0;
    private Long projectId;
    private String projectName;
    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
    private Date date;
    private Double diffValue;

    public Double getCodValueDay1() {
        return codValueDay1;
    }

    public void setCodValueDay1(Double codValueDay1) {
        this.codValueDay1 = codValueDay1;
    }

    public Double getCodValueDay2() {
        return codValueDay2;
    }

    public void setCodValueDay2(Double codValueDay2) {
        this.codValueDay2 = codValueDay2;
    }

    public Long getProjectId() {
        return projectId;
    }

    public void setProjectId(Long projectId) {
        this.projectId = projectId;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Double getDiffValue() {
        return diffValue;
    }

    public void setDiffValue(Double diffValue) {
        this.diffValue = diffValue;
    }
}
